Ext.define('DCApp.view.Header', {
    extend: 'Ext.Container',
    xtype: 'appHeader',
    id: 'app-header',
    height: 52,
    layout: {
        type: 'hbox',
        align: 'middle'
    },

    initComponent: function() {
        this.title=DCApp.Cfg.APP_NAME;

        document.title = this.title;

        this.items = [{
            xtype: 'component',
            id: 'app-header-logo'
        },{
            xtype: 'component',
            id: 'app-header-title',
            html: this.title,
            flex: 1
        },{
        	xtype:'splitbutton', 
		    text:DCApp.Cfg.usrInfo.get('userName')||DCApp.Cfg.usrInfo.get('name'),
         	cls: 'x-btn-text-icon-transparent',
            menu: {
			items: [{
            	text:'注销'
            },{
				text:'关于'
            },{
				text:'Print Label'
            }
            ]}}];
        this.callParent();
    }
});
